﻿<%@ Page CodeFileBaseClass="AliCMS.Lib.AdminPageBase" %>
<ali:List ID="List" Object="Product" Page="PageNumber" PageSize="20" Condition="IsDeleted=false and IsChecked=true and IsDisplay=true and Kind='WebSite'">
	<ali:Row MaxCol="4">
		<ul>
			<ali:Col MaxRecord="1">
				<ali:Record>
					<li>
						<a href="../../IlgharCMS.HostModule/website/view.aspx?ID=<%=InnerID%>"><img src="<%=Thumbnail%>" alt="<%=Name%>" /></a>
						<div><a href="../../IlgharCMS.HostModule/website/view.aspx?ID=<%=InnerID%>"><%=Name%></a></div>
						<div><button id="<%=InnerID%>">购买</button></div>
					</li>
				</ali:Record>
			</ali:Col>
		</ul>
	</ali:Row>
</ali:List>
<ali:Pagination Page="PageNumber" PageSize="20" RecordCount="List[RecordCount]">
	<div class="Pagination">
		<div class="Left">共 <%=RecordCount%> 条 当前显示第 <%=PageNumber%> 页 第 <%=RangeLower%>-<%=RangeUpper%> 条 </div>
		<div class="Right">
			<ali:FirstPage>
				<ali:Yes>
					<img src="<%=ImagePath%>pagination/first_page_off.gif" alt="首页" />
					<img src="<%=ImagePath%>pagination/previous_page_off.gif" alt="上一页" />
				</ali:Yes>
				<ali:No>
					<a href="javascript:Go(1)"><img src="<%=ImagePath%>pagination/first_page_on.gif" alt="首页" /></a>
					<a href="javascript:Go(<%=PageNumber%> - 1)"><img src="<%=ImagePath%>pagination/previous_page_on.gif" alt="上一页" /></a>
				</ali:No>
			</ali:FirstPage>
			<ali:CurrentPage Range="5">
				<ali:Yes>
					<span class="Current"><%=Index%></span>						
				</ali:Yes>
				<ali:No>
					<a href="javascript:Go(<%=Index%>)">[<%=Index%>]</a>
				</ali:No>
			</ali:CurrentPage>
			<ali:LastPage>
				<ali:Yes>
					<img src="<%=ImagePath%>pagination/next_page_off.gif" alt="下一页" />
					<img src="<%=ImagePath%>pagination/last_page_off.gif" alt="尾页" />
				</ali:Yes>
				<ali:No>
					<a href="javascript:Go(<%=PageNumber%> + 1)"><img src="<%=ImagePath%>pagination/next_page_on.gif" alt="下一页" /></a>
					<a href="javascript:Go(<%=PageCount%>)"><img src="<%=ImagePath%>pagination/last_page_on.gif" alt="尾页" /></a>
				</ali:No>
			</ali:LastPage>
		</div>
	</div>
</ali:Pagination>